package com.iyohei.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.iyohei.entry.Comment;
import com.iyohei.mapper.CommentMapper;

@Service
public class CommentServiceImpl implements CommentService {
	@Autowired
	CommentMapper commentDao;
	
	@Override
	public List<Comment> getComList(long id) {
		return commentDao.getComList(id);
	}

	@Override
	public int addComment(Comment com) {
		return commentDao.addComment(com);
	}

	@Override
	public Comment getCommentById(long id) {
		return commentDao.getCommentById(id);
	} 

}
